call init_primary_thread from init_threads
authorTom Tromey <tromey@redhat.com>
Sat, 6 Jul 2013 20:26:36 +0000 (14:26 -0600)
committerTom Tromey <tromey@redhat.com>
Sat, 6 Jul 2013 20:26:36 +0000 (14:26 -0600)
src/thread.c

index 99ca21bdc847af1089065c2a22e82631fff00554..21f74b7696fe19dc150160a3d8b12c776be2db7d 100644 (file)
@@ -924,6 +924,7 @@ init_threads_once (void)
 void
 init_threads (void)
 {
+  init_primary_thread ();
   sys_cond_init (&primary_thread.thread_condvar);
   sys_mutex_init (&global_lock);
   sys_mutex_lock (&global_lock);